<?php

require_once dirname(__FILE__) . '/../PipesUnitTest.config.php';
require_once 'Pipes/Config.php';
require_once 'Pipes/Framework.php';

class PipesSample_TestCase extends PHPUnit_Framework_TestCase
{
    protected $_pdo = null;
    
    public function setup()
    {
        $this->_pdo = new PDO('mysql:host=localhost;', 'root', '');
        $this->_pdo->exec('DROP DATABASE IF EXISTS pipessample_dev');
        $this->_pdo->exec('CREATE DATABASE pipessample_dev');
        $this->_pdo->exec('USE pipessample_dev');
    }
    
    public function teardown()
    {
        $this->_pdo->exec('DROP DATABASE IF EXISTS pipessample_dev');
        unset($this->_pdo);
    }
}
